
import request from '@/utils/request'

// 查询储位位置列表
export function listPosition(query) {
  return request({
    url: '/api/storagePosition/page',
    method: 'get',
    params: query
  })
}

// 查询储位位置详细
export function getPosition(storageId) {
  return request({
    url: '/api/storagePosition/' + storageId,
    method: 'get'
  })
}

// 新增储位位置
export function addPosition(data) {
  return request({
    url: '/api/storagePosition/add',
    method: 'post',
    data: data
  })
}

// 修改储位位置
export function updatePosition(data) {
  return request({
    url: '/api/storagePosition/update',
    method: 'post',
    data: data
  })
}

// 删除储位位置
export function delPosition(storageId) {
  return request({
    url: '/api/storagePosition/delete/' + storageId,
    method: 'post'
  })
}
